import request from '@/utils/request'

// 查询团队信息列表
export function listTeam(query) {
  return request({
    url: '/ndpf/team/list',
    method: 'get',
    params: query
  })
}

// 查询团队信息列表
export function listTeamAll(query) {
  return request({
    url: '/ndpf/team/teamList',
    method: 'get',
    params: query
  })
}

// 查询团队信息详细
export function getTeam(teamId) {
  return request({
    url: '/ndpf/team/' + teamId,
    method: 'get'
  })
}

// 新增团队信息
export function addTeam(data) {
  return request({
    url: '/ndpf/team',
    method: 'post',
    data: data
  })
}

// 修改团队信息
export function updateTeam(data) {
  return request({
    url: '/ndpf/team',
    method: 'put',
    data: data
  })
}

// 删除团队信息
export function delTeam(teamId) {
  return request({
    url: '/ndpf/team/' + teamId,
    method: 'delete'
  })
}

// 查询团队信息详细
export function getTeamInfo(teamId) {
  return request({
    url: '/ndpf/team/getTeamInfo',
    method: 'get'
  })
}


// 修改状态
export function modState(data) {
  return request({
    url: '/ndpf/team',
    method: 'put',
    data: data
  })
}


// 查询用户项目信息列表
export function listUserTeams(query) {
  return request({
    url: '/ndpf/team/getUserTeamslist',
    method: 'get',
    params: query
  })
}